package petshop.agronunes.negocio;
import java.util.List;


import petshop.agronunes.dao.TipoServicoDAO;
import petshop.agronunes.entidade.TipoServico;

public class TipoServicoBLL {
	public Integer insert(TipoServico tiposervico) throws Exception {
		try {
			return new TipoServicoDAO().insert(tiposervico);
		} catch (Exception e) {
			throw new Exception(e);
		}
	}
	
	public void update(TipoServico tiposervico) throws Exception {
		try {
			new TipoServicoDAO().update(tiposervico);
		} catch (Exception e) {
			throw new Exception(e);
		}
	}
	
	public TipoServico GetById(Integer id) throws Exception {
		try {
			return new TipoServicoDAO().GetById(id);
		} catch (Exception e) {
			throw new Exception(e);
		}
	}
	
	public void delete(TipoServico tiposervico) throws Exception {
		try {
			new TipoServicoDAO().delete(tiposervico);
		} catch (Exception e) {
			throw new Exception(e);
		}
	}
	
	public List<TipoServico> getAll() throws Exception {
		try {
			return new TipoServicoDAO().getAll();
		} catch (Exception e) {
			throw new Exception(e);
		}
	}
}
